import Layout from '@/page/index/'

export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
        path: 'index',
        name: '首页',
        meta: {
            i18n: 'dashboard'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/wel')
    }]
}, {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [{
        path: 'index',
        name: '测试页',
        meta: {
            i18n: 'test'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/util/test')
    }]
},
{
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
        path: 'index',
        name: '个人信息',
        meta: {
            i18n: 'info'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/user/info')
    }]
},
{
    path: '/monitor',
    component: Layout,
    // redirect: '/monitor/index',
    children: [{
        path: '/monitor/myAct',
        name: 'myact',
        meta: {
            i18n: 'info'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/monitor/myAct')
    }]
}
    , {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [{
        path: 'form/:processDefinitionId',
        name: '请假流程',
        meta: {
            i18n: 'work'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
    }, {
        path: 'handle/:taskId/:processInstanceId/:businessId',
        name: '处理请假流程',
        meta: {
            i18n: 'work'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
    }, {
        path: 'detail/:processInstanceId/:businessId',
        name: '请假流程详情',
        meta: {
            i18n: 'work'
        },
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
    }]
},
// {
//     path: '/vcustom',
//     component: Layout,
//     children: [{
//         path: '/vcustom/getOneTenant',
//         name: 'getOneTenant',
//         component: () =>
//             import( /* webpackChunkName: "views" */ '@/views/vcustom/getOneTenant')
//     }, {
//         path: '/vcustom/tenantEdit',
//         name: '编辑公司信息',
//         component: () =>
//             import( /* webpackChunkName: "views" */ '@/views/vcustom/tenantEdit')
//     },
//     ]
// },
{
    path: '/course',
    component: Layout,
    children: [{
        path: '/edit/courseedit',
        name: '课程视频',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/course/edit/courseedit')
    }, {
        path: '/edit/add',
        name: '编辑',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/course/edit/add')
    }, {
        path: '/edit/coursewelfare',
        name: '课程福利',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/course/edit/coursewelfare')
    }]
},
{
    path: '/vcustom',
    component: Layout,
    children: [{
        path: '/get',
        name: '购买',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/vcustom/get')
    }, {
        path: '/vcustom/tenantEdit',
        name: '编辑公司信息',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/vcustom/tenantEdit')
    },
    {
        path: '/vcustom/tenantvip',
        name: 'vip',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/vcustom/tenantvip')
    },
    ]
}, {
    path: '/tool',
    component: Layout,
    children: [{
        path: '/tool/withdraw',
        name: '提现',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/tool/withdraw')
    }]
}, {
    path: '/tool',
    component: Layout,
    children: [{
        path: '/monitoer/add',
        name: '活动新增',
        component: () =>
            import( /* webpackChunkName: "views" */ '@/views/monitor/activityAdd')
    }]
}
]
